<template>
  <div class="app-container video_music">
    <div class="content">
      <el-tabs v-model="activeName" @tab-click="handleClick">
        <el-tab-pane label="视频推荐" name="first">
          <allvideo></allvideo>
        </el-tab-pane>
        <el-tab-pane label="音频推荐" name="second">
          <allmusic></allmusic>
        </el-tab-pane>
      </el-tabs>
    </div>
  </div>
</template>

<script>
import allvideo from "@/components/video_music/video";
import allmusic from "@/components/video_music/music";
export default {
  data() {
    return {
      currentPage: 1,
      activeName: "first"
    };
  },
  components: {
  allvideo,
  allmusic
    
  },
  methods: {
    handleSizeChange(val) {
      console.log(`每页 ${val} 条`);
    },
    handleCurrentChange(val) {
      console.log(`当前页: ${val}`);
    },
    handleClick(tab, event) {
      console.log(tab, event);
    }
  }
};
</script>
<style lang="less" scoped>
.video_music {
  padding: 20px;
  border-radius: 10px;
  background: #fff;
  .content {
    .block:nth-child(2n) {
      margin-left: 194px;
    }
  }
}
</style>
<style lang="less">
.custom-dz{
  .video_music .content .el-tabs__item.is-active{
        color: #e93926;
  }
  .video_music .content .el-tabs__active-bar{
    background-color: #e93926;
  }
  .video_music .content .el-tabs__item:hover{
   color: #e93926;

  }
}
.video_music {
  .content {
    .el-tabs__nav-wrap::after {
      height: 1px;
    }
    .el-tabs__item {
      font-size: 18px;
    }
    .el-tabs__item:hover {
      color: #15c798;
    }
    .el-tabs__item.is-active {
      color: #15c798;
    }
    .el-tabs__active-bar {
      background-color: #15c798;
    }
    .el-tabs__nav {
      padding-bottom: 5px;
      user-select: none;
      // border-left:3px solid #15c798;
    }
  }
}
</style>



